php forum
php mysql forum
php mysql smarty
 
Topic Options
#241226 - 03/20/03 03:37 PM [6.2] Mark all read for single forum
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
NAME: Mark all read for single forum <br />VERSION: 1.0.1 <br />DESCRIPTION: Mark all posts in a single forum as read. <br />WORKING UNDER: UBB.threads 6.2.x <br />PREREQUISITES: none <br />AUTHORS: Astaran <br />CREDITS: JustDave, who created the first MarkAllRead hack <br />DEMO: none <br />FILES ALTERED: ubbthreads.php,markallread.php, domarkallread.php,templates/ubbthreads.tmpl, templates/markallread.tmpl <br />DATABASE ALTERED: no <br />NEW FILES: none <br /> <br />HISTORY: <br /> 2003-03-20 Astaran - 1.0.0 Release of the hack <br /> 2003-03-25 Astaran - 1.0.1 Added a title tag to the image


Attachments
73721-marksingleforum_1_0_1.txt (58 downloads)



Edited by Astaran (03/25/03 12:02 PM)
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#241227 - 03/20/03 10:47 PM Re: [6.2] Mark all read for single forum [Re: -Fusion-]
ChrisBeveridge Offline
Junior Member

Registered: 03/17/03
Posts: 12
Hm, I must be missing something. I made all the changes and it's marking all the forums still. Time to debug...

Top
#241228 - 03/21/03 09:44 AM Re: [6.2] Mark all read for single forum [Re: Wolfsmutter]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Are you clicking on the bulbs/newpost icons that appear right before the forum name? <br />


Attachments
73796-screen.jpg (21 downloads)

_________________________
Running a community? -> Keep informed and take it to the next level

Top
#241229 - 03/21/03 01:29 PM Re: [6.2] Mark all read for single forum [Re: -Fusion-]
ChrisBeveridge Offline
Junior Member

Registered: 03/17/03
Posts: 12
aha, ok. I was looking for it to be within the forum itself. Since if you go into a forum and read say 3 out of 30 new threads, i looked at it as having the option there so that you could clear those threads of new posts after going in and seeing nothing else you wanted to read. <br /> <br />Once you go into the thread, you can't do the markforum from the index.


Edited by ChrisBeveridge (03/21/03 01:30 PM)

Top
#241230 - 03/22/03 02:59 AM Re: [6.2] Mark all read for single forum [Re: Wolfsmutter]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Nice mod... a great addition to this would be a mouse over that said it would mark this forum topics as read.

Top
#241231 - 03/22/03 03:45 AM Re: [6.2] Mark all read for single forum [Re: Kelly]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
Not sure if this is a problem, but it lets someone create entries into w3t_Last for forums that don't exist.<br /><br />I was trying to add this into postlist.php/tmpl and ended up with some odd entries when I was doing something wrong.

Top
#241232 - 03/23/03 11:36 AM Re: [6.2] Mark all read for single forum [Re: romka]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I'm with smilesforu. I installed and it's working great, but I would have been in the same boat as Chris. There needs to be something that let's the users know they have this option.

Top
#241233 - 03/24/03 02:38 PM Re: [6.2] Mark all read for single forum [Re: eslmix]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
Installed, works. Only been in use for half a day.<br /><br />I added this where the post button is on a forum instead.<br />Works great in expanded mode where not all the messages are marked as read when leaving the forum.<br /><br />Next step: Mark Category read? <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#241234 - 03/25/03 12:04 PM Re: [6.2] Mark all read for single forum [Re: Kelly]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I added a title tag that is displayed when the user hovers over the image.<br />You can define the text in your language files.<br /><br />For upgrading just search for "marktitle" in the instructions and add this lines to your code.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#241235 - 03/25/03 12:16 PM Re: [6.2] Mark all read for single forum [Re: romka]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
If you're willing to share the instructions for adding the button on postlist.php, I'll update the instructions accordingly.<br /><br />Expanding that to work with categories should be too hard.<br />You'll could use the existing "question mark" button or create a extra button.<br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#241236 - 03/25/03 04:15 PM Re: [6.2] Mark all read for single forum [Re: romka]
ChrisBeveridge Offline
Junior Member

Registered: 03/17/03
Posts: 12
[]RandyJG said:<br />I added this where the post button is on a forum instead.<br />[/]<br /><br />Randy, can you post what you did for that? I'm having a hell of a time getting it to work right and must be missing something silly on my part.

Top
#241237 - 03/25/03 04:27 PM Re: [6.2] Mark all read for single forum [Re: Wolfsmutter]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
Reason I didn't share it was I haven't bothered to work it into the php/language files and to block it from annonymous.<br /><br />For now I just have it hardcoded as an active link in the template for postlist.tmpl:<br /><br /><!-- Under construction --><br /><td class="navigation" nowrap="nowrap"><br /><a href="/ubbthreads/markallread.php?Cat=$Cat&amp;singleforum=$Board">Mark Read</a> <br /></td>

Top
#241238 - 03/25/03 04:30 PM Re: [6.2] Mark all read for single forum [Re: romka]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]RandyJG said:<br />Reason I didn't share it was I haven't bothered to work it into the php/language files and to block it from annonymous.<br /> [/]<br /><br />I'll do that tomorrow and update the intructions.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#241239 - 03/28/03 02:58 AM Re: [6.2] Mark all read for single forum [Re: -Fusion-]
KrisG Offline
Lurker

Registered: 03/12/03
Posts: 8
It'd be nice if the new posts icon remained (along with the ability to mark the forum) in the Main Index after you visited a forum if you haven't marked that particular forum yet. Can this be done?
_________________________
Kris Granholm &#9832; "Fanservice is anime gravy."

Liven up your web site or e-mail with Anime Style Smilies.

Top
#241240 - 03/28/03 06:33 AM Re: [6.2] Mark all read for single forum [Re: mm14thvt_dup1]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
In the first instruction instead of replacing with this:<br /><br /> // --------------------------<br /> // Which folder do we display<br /> $boardfolder = "nonewposts.gif";<br /> $markallstart = "";<br /> $markallend = "";<br /> $marktitle = "";<br /> if ( ($checker < $Last) ){<br /> $boardfolder = "newposts.gif";<br /> if ($Username) {<br />$markallstart = "<a href=\"{$config['phpurl']}/markallread.php?Cat=$Cat&amp;singleforum=$Keyword\">";<br />$markallend = "</a>";<br />$marktitle = "title=\"". $ubbt_lang['MARK_TEXT'] . "\"";<br /> }<br /> }<br /><br />Replace with this (Move the inner if to the outside of the new check):<br /><br /> // --------------------------<br /> // Which folder do we display<br /> $boardfolder = "nonewposts.gif";<br /> $markallstart = "";<br /> $markallend = "";<br /> $marktitle = "";<br /> if ( ($checker < $Last) ){<br /> $boardfolder = "newposts.gif";<br /> }<br /> if ($Username) {<br />$markallstart = "<a href=\"{$config['phpurl']}/markallread.php?Cat=$Cat&amp;singleforum=$Keyword\">";<br />$markallend = "</a>";<br />$marktitle = "title=\"". $ubbt_lang['MARK_TEXT'] . "\"";<br /> }<br />

Top
#241241 - 03/28/03 07:43 AM Re: [6.2] Mark all read for single forum [Re: romka]
KrisG Offline
Lurker

Registered: 03/12/03
Posts: 8
Sweet deal! Thanks RandyJG.
_________________________
Kris Granholm &#9832; "Fanservice is anime gravy."

Liven up your web site or e-mail with Anime Style Smilies.

Top
#241242 - 03/28/03 07:55 AM Re: [6.2] Mark all read for single forum [Re: mm14thvt_dup1]
KrisG Offline
Lurker

Registered: 03/12/03
Posts: 8
I can now mark the forum even if the "no new posts" icon appears in the Main Index, but the icon in the main index changes to the "no new posts" icon even though there are still unread posts in that specific forum. Is there a way you can keep the "New posts" icon untill a user marks that specific forum?
_________________________
Kris Granholm &#9832; "Fanservice is anime gravy."

Liven up your web site or e-mail with Anime Style Smilies.

Top
#241243 - 08/06/03 01:41 PM Re: [6.2] Mark all read for single forum [Re: mm14thvt_dup1]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
[6.2]<br /><br />While trying to setup new indicators for anonymous users I noticed that this line is possibly not doing what it should:<br /><br />preg_replace ("-$singleforum=(\d*?)-", '', ${$config['cookieprefix']."w3t_visit"})<br /><br />It appears to be replacing, for example:<br /><br />-myforum=1234567-<br /><br />with this:<br /><br />-1234567-<br /><br />and then adding the new entry to the end of the cookie leaving some garbage behind each time a user uses 'mark read' for a specific forum.<br /><br />When I replaced the pattern with this instead it appears to work as expected:<br /><br />"/-$singleforum=(.*?)-/"<br /><br />(this pattern is the pattern found in existing code to check if a forum in in w3t_visit cookie string)

Top
#241244 - 08/08/03 09:21 AM Re: [6.2] Mark all read for single forum [Re: romka]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Thx, RandyJG!<br /><br />I updated the instructions and reposted them HERE<br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks